package com.ymttest.business.service;

import junit.framework.JUnit4TestAdapter;
import junit.framework.Test;
import junit.framework.TestSuite;

public class BaseTestSuites {
	public static Test suite() throws Exception {
        TestSuite suite = new TestSuite("test for base testcase.");
        JUnit4TestAdapter testAdapter;
        //通过过滤器，添加基础测试到TestSuite中
        for(int i=0;i<testClasses.length;i++){
                 testAdapter= new JUnit4TestAdapter(testClasses[i]);
                 testAdapter.filter(new BaseTestFilter(testNames[i]));
                 suite.addTest(testAdapter);
        }
        return suite;
}

public static void main(String[] args) throws Exception{
        junit.textui.TestRunner.run(BaseTestSuites.suite());
      
	//JUnitCore.runClasses(BaseTestSuites.suite());
}
//待执行的TestCase
private static Class[] testClasses = {
	
};
//与上述TestCase对应一一对应，待执行的Test方法名。
private static String[] testNames = {
                // "Tc_CheckCoupons_029",
                 "Tc_CheckCoupons_030",
                 "Tc_CheckCoupons_043",
                // "Tc_ChooseCouponAuto_001"
};
}
